﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="DreamCube.DC_52Icon.search" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><%=HttpUtility.UrlDecode(Request["w"])%> | 我爱图标网</title>
    <meta content="text/html;charset=UTF-8 http-equiv=content-type" />
    <meta name="keywords" content="<%=HttpUtility.UrlDecode(Request["w"])%>图标 图标下载 ico图标 ico图标下载 png图标 网页图标 图标素材 icon png 12 16 24 32 48 128 iconfinder" />
    <meta name="description" content="通过图标搜索的方式使Web设计师和开发者能够快速获取高质量、多尺寸png,icon图标。" />
    <link rel="stylesheet" type="text/css" href="css/screen_015.css" />
    <link rel="Shortcut Icon" href="favicon.ico" /><!--地址栏和标签上显示图标-->
    <link rel="Bookmark" href="favicon.ico" /><!--收藏夹显示图标-->
</head>
<body id="view-search">
    <div style="float:right;height:20px">
        <!-- Baidu Button BEGIN -->
        <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
        <span class="bds_more">分享到：</span>
        <a class="bds_qzone"></a>
        <a class="bds_tsina"></a>
        <a class="bds_tqq"></a>
        <a class="bds_renren"></a>
        <a class="bds_t163"></a>
        <a class="shareCount"></a>
        </div>
        <!-- Baidu Button END -->
    </div>
    <div style="clear:both"></div>
    <input type="hidden" id="saveWord" name="saveWord" value="<%=Request["w"]%>" />
    <form id="searchform" name="searchform" method="get" action="search.aspx">
    <input type="hidden" id="p" name="p" value="<%=HttpUtility.UrlDecode(Request["page"]) %>" />
    <div id="header">
        <a id="logo" href="./index.aspx"><img alt="返回首页" src="images/52iconlogo.png" width="160" height="65" /></a>
        <div id="searcharea">
            <div>
                <input id="inputField" value='<%=HttpUtility.UrlDecode(Request["w"]) %>' name='w' />&nbsp;
                <input onclick="DoReset()" id="searchsubmit" value="Search" type="button" />
            </div>
        </div>
    </div>
    <table>
        <tbody>
            <tr>
                <td>
                    <div id="settings">
                        <div id="settings-inner">
                            <table class="settingsgrid">
                                <tbody>
                                    <tr>
                                        <td>
                                            <div id="numberoficons">
                                                每页显示：
                                                <select onchange="Update()" id="ps" name="ps">
                                                    <option <%=Request["ps"]=="12"?"selected":"" %> value="12">12个</option>
                                                    <option <%=Request["ps"]=="14"?"selected":(Request["ps"]==null?"selected":"") %> value="14">14个</option>
                                                    <option <%=Request["ps"]=="16"?"selected":"" %> value="16">16个</option>
                                                    <option <%=Request["ps"]=="32"?"selected":"" %> value="32">32个</option>
                                                    <option <%=Request["ps"]=="64"?"selected":"" %> value="64">64个</option>
                                                </select></div>
                                        </td>
                                        <td>
                                            <div id="backgroundcolor">
                                                用
                                                <select onchange="Update()" id="bg" name="bg">
                                                    <option <%=Request["bg"]=="white"?"selected":"" %> value="white">白色</option>
                                                    <option <%=Request["bg"]=="gray"?"selected":"" %> value="gray">透明</option>
                                                    <option <%=Request["bg"]=="black"?"selected":"" %> value="black">黑色</option>
                                                </select>展示
                                            </div>
                                        </td>
                                        <td>
                                            <div id="sizes">
                                                图标尺寸：
                                                <select onchange="Update()" id="size" name="size">
                                                    <option <%=Request["size"]=="sizeall"?"selected":"" %> value="allsize">全部</option>
                                                    <option <%=Request["size"]=="size16"?"selected":"" %> value="size16">16 px</option>
                                                    <option <%=Request["size"]=="size24"?"selected":"" %> value="size24">24 px</option>
                                                    <option <%=Request["size"]=="size32"?"selected":"" %> value="size32">32 px</option>
                                                    <option <%=Request["size"]=="size48"?"selected":"" %> value="size48">48 px</option>
                                                    <option <%=Request["size"]=="size64"?"selected":"" %> value="size64">64 px</option>
                                                    <option <%=Request["size"]=="size128"?"selected":"" %> value="size128">128 px</option>
                                                    <option <%=Request["size"]=="size256"?"selected":"" %> value="size256">256 px</option>
                                                </select>
                                            </div>
                                        </td>
                                        <td>
                                            <div id="licenses">
                                                图标格式：
                                                <select onchange="Update()" id="it" name="it">
                                                    <option <%=Request["it"]=="all"?"selected":"" %> value="all">显示PNG和ICON格式</option>
                                                    <option <%=Request["it"]=="icon"?"selected":"" %> value="icon">只显示ICON格式</option>
                                                    <option <%=Request["it"]=="png"?"selected":"" %> value="png">只显示PNG格式</option>
                                                </select>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <table id="searchtable">
                        <tbody>
                            <tr>
                                <td id="searchresultstd">
                                    <div id="searchresults">
                                        <h1>
                                            总共找到&nbsp;<span><asp:Literal ID="tCount" runat="server" Text="0"></asp:Literal></span>&nbsp;
                                            个跟&nbsp;“<span><asp:Literal ID="tKey" runat="server"></asp:Literal></span>”&nbsp;有关的图标。
                                            </h1>
                                        <div class="clearboth">&nbsp;</div>
                                        <div class="pageslist"><asp:Literal ID="nav" runat="server"></asp:Literal></div>
                                        <div class="clearboth">&nbsp;</div>
                                        <div id="icons">
                                            <asp:Literal ID="lt_icons" runat="server"></asp:Literal>
                                        </div>
                                        <div class="clearboth">&nbsp;</div>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <uc:pageFooter ID="pageFooter1" runat="server" />

    <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6715252" ></script>
    <script type="text/javascript" id="bdshell_js"></script>
    <script type="text/javascript">
        document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date() / 3600000)
    </script>
    </form>
</body>
</html>
<script src="javascript/common.js" type="text/javascript"></script>
<script type="text/javascript">
    window.onload = function () {
        DillWithAllImages();
    };
    ///跳转分页
    function Update(page) {
        try {
            document.searchform.w.value = document.getElementById("saveWord").value;
            if (!page)
                document.getElementById("p").value = 1;
            else
                document.getElementById("p").value = page;
            document.searchform.submit();
        } catch (e) {
        }
    }
    function DoReset() {
        document.searchform.submit();
    }
</script>
